package stage1.module3.homework4;

import java.util.ArrayList;

public class Traverse {
    public Traverse(ArrayList<Student> students){
        for(Student s : students){
            System.out.print("学号："+ s.getId() + ",");
            System.out.print("姓名：" + s.getName() + ",");
            System.out.println("年龄：" + s.getAge());
        }
    }
}
